package com.ruoyi.partybuilding.domain.vo;

import com.easy.query.core.annotation.Column;
import com.easy.query.core.annotation.Navigate;
import com.easy.query.core.enums.RelationTypeEnum;
import com.ruoyi.partybuilding.controller.ConstData;
import com.ruoyi.partybuilding.domain.ReleaseDetails;
import com.ruoyi.partybuilding.domain.ReleaseTask;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ReleaseTaskVo  extends ReleaseTask {


    Long detailId;
    @Navigate(value = RelationTypeEnum.OneToOne,targetProperty = "detailId", selfProperty = "detailId")
    @ApiModelProperty(value = "当前阶段详情",notes = "")
    ReleaseDetails detail;

    @ApiModelProperty(value = "标题",notes = "")
    private String detailTitle ;
    /** 内容 */
    @ApiModelProperty(value = "内容",notes = "")
    private String detailContent ;
    /** 阶段：0未知，1申请、20审批、30发榜、40揭榜、50攻榜、61评价、62奖励 */
    @ApiModelProperty(value = ConstData.ReleaseTask_StageVals,notes = ConstData.ReleaseTask_StageVals)
    private Integer detailStage ;
    /** 附件 */
    @ApiModelProperty(value = "附件",notes = "")
    private String detailFiles ;
    @ApiModelProperty(value = "昵称",notes = "")
    private String detailNikename ;
    /** 创建人 */
    @ApiModelProperty(value = "创建人",notes = "")
    private String detailCreateBy ;
    /** 创建时间 */
    @ApiModelProperty(value = "创建时间",notes = "")
    private Date detailCreateTime ;
    @Navigate(value = RelationTypeEnum.ManyToOne,targetProperty = "id", selfProperty = "release_task_id")
    ReleaseTask task;
}
